#include "../include/diana_listener_factory.hpp"

#include <iostream>
#include <QDebug>

namespace dianalistener {

using namespace Qt;

DianaListenerFactory::DianaListenerFactory(const QString& master, const QString& host) :
  master(master), host(host)
  {}

DianaListener* DianaListenerFactory::createListener(const QString& publisherName) {
  DianaListener* listener = new DianaListener(0, publisherName);
  listener->init(master, host);
  return listener;
}

}  // namespace dianalistener

